<template>
  <div id="app">
    <!-- 顶部 Header 区域 -->
    <mt-header fixed title="shOwlOtus">
    </mt-header>

    <!-- 中间路由 router-view -->
    <transition>
      <router-view></router-view>
    </transition>


    <!-- 底部 Tab-bar 区域 -->
    <nav class="mui-bar mui-bar-tab">
			<router-link to="/home" class="mui-tab-item-me">
        <span class="mui-icon fas fa-home"></span>
				<span class="mui-tab-label">首页</span>
			</router-link>
			<router-link to="/found" class="mui-tab-item-me">
				<span class="mui-icon fas fa-eye"></span>
				<span class="mui-tab-label">发现</span>
			</router-link>
			<router-link to="/order" class="mui-tab-item-me">
				<span class="mui-icon fas fa-clipboard"><span class="mui-badge">9</span></span>
				<span class="mui-tab-label">订单</span>
			</router-link>
			<router-link to="account" class="mui-tab-item-me" >
				<span class="mui-icon fas fa-user"></span><br>
				<span class="mui-tab-label">我的</span>
			</router-link>
		</nav>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {

    }
  },
  methods: {
  },
  watch: {
    $route(to, from){
      // this.show()
      // console.log(to.path)
    }
  }
}
</script>

<style lang="scss" scoped>
  #app{
    padding-top: 40px;
    padding-bottom: 60px;
    overflow: hidden;
    header{
      background-color: crimson;
      font-size: 24px;
      z-index: 999
    }

    .fas{
      font-size: 20px !important;
      margin-top: 3px;
    }
    .mui-badge{
      background: rgba(245, 65, 65, 0.808) !important;
    }
    .mui-active{
      color: crimson !important;
    }

  }
 
  #app header h1{
    font-weight: bold;
  }
  
  /* 动画 */
  .v-enter{
    opacity: 0;
    transform: translateX(100%);
  }
  .v-leave-to{
    opacity: 0;
    transform: translateX(-100%);
    position: absolute;
  }
  .v-enter-active,.v-leave-active{
    transition: .5s;
  }
  .mui-bar-tab .mui-tab-item-me .mui-active {
    color: #007aff;
  }
  .mui-bar-tab .mui-tab-item-me {
    display: table-cell;
    overflow: hidden;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
  }
  .mui-bar-tab .mui-tab-item-me .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .mui-bar-tab .mui-tab-item-me .mui-icon~.mui-tab-label {
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
</style>
